﻿using OnlineCourse.Model.Entity;
using OnlineCourse.Services.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace OnlineCourse.Services.IServices
{
    public interface ICommentServices
    {
        /// <summary>
        /// 添加一个新的反馈
        /// </summary>
        /// <param name="UserId"></param>
        /// <param name="SectionId"></param>章节ID
        /// <param name="Content"></param>内容
        /// <param name="TheAuthorContent"></param>作者内容
        /// <returns></returns>
        bool Add(Guid UserId, Guid SectionId, string Content, string TheAuthorContent, int Like);
        /// <summary>
        /// 删除一个反馈
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        bool Delete(Guid ID);
        /// <summary>
        /// 按照用户类型查询
        /// </summary>
        /// <param name="CouponId"></param>
        /// <returns></returns>
        IList<CommentModel> QueryLists(Guid UserId,out int total, int page, int pageSize );
        /// <summary>
        /// 按照章节类型查询
        /// </summary>
        /// <param name="SectionId"></param>
        /// <param name="total"></param>
        /// <param name="page"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        IList<CommentModel> QueryList(Guid SectionId, out int total, int page, int pageSize );
    }
}
